package com.bondmatch.demo.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

public class TransRequest {
    private Integer id;

    private String bondCode;

    private String customerNo;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date transactionDate;

    private Integer type;

    private BigDecimal price;

    private Date gmtCreate;

    private Integer state;

    public TransRequest() {
    }

    public TransRequest(String bondCode, String customerNo, Date transactionDate, Integer type, BigDecimal price) {
        this.bondCode = bondCode;
        this.customerNo = customerNo;
        this.transactionDate = transactionDate;
        this.type = type;
        this.price = price;
    }

    @Override
    public String toString() {
        return "TransRequest{" +
                "id=" + id +
                ", bondCode='" + bondCode + '\'' +
                ", customerNo=" + customerNo +
                ", transactionDate=" + transactionDate +
                ", type=" + type +
                ", price=" + price +
                ", gmtCreate=" + gmtCreate +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBondCode() {
        return bondCode;
    }

    public void setBondCode(String bondCode) {
        this.bondCode = bondCode;
    }

    public String getCustomerNo() {
        return customerNo;
    }

    public void setCustomerNo(String customerNo) {
        this.customerNo = customerNo;
    }

    public Date getTransactionDate() {
        return transactionDate;
    }

    public void setTransactionDate(Date transactionDate) {
        this.transactionDate = transactionDate;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
}